import request from '../request'
let LOGIN_URL = '/login'
//分类数据的设置api
export function loginapi(account, password) {
    return request({
        url: LOGIN_URL,
        method: 'post',
        data: { account, password }
    })
}
//登录
let SOCIAL_URL = '/login/social'
//分类数据的设置api
export function social(unionId, source) {
    return request({
        url: SOCIAL_URL,
        method: 'post',
        data: { unionId, source }
    })
}
// //第三方登录
// let SOCIAL_URL = '/login/social'
// //分类数据的设置api
// export function social(unionId, source) {
//     return request({
//         url: SOCIAL_URL,
//         method: 'post',
//         data: { unionId, source }
//     })
// }    